﻿<UserControl x:Class="XamlaApp.Views.UIViews.EmptyPropertiesView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:SilverlightContrib.Controls;assembly=SilverlightContrib.Controls" >
    <StackPanel>
        <TextBlock CacheMode="BitmapCache" Foreground="Black" FontSize="14" Padding="5" Text="Select an element in the design space (to the right) or create a new element from the available choices (to the left)." TextWrapping="Wrap"></TextBlock>
        <Grid HorizontalAlignment="Center">
            <Button CacheMode="BitmapCache" Style="{StaticResource xamla_menustrip_button}" Click="Button_Click" Tag="{Binding ElementName=popupColorPickerStroke}">
                <Button.Content>
                    <StackPanel Orientation="Horizontal">
                        <Rectangle Style="{StaticResource xamla_colorbox}" Fill="{Binding StageBackgroundColor}"></Rectangle>
                        <TextBlock  Margin="5,0,0,0" Text="Change Background Color..."></TextBlock>
                    </StackPanel>
                </Button.Content>
            </Button>
            <Popup x:Name="popupColorPickerStroke" >
                <Border BorderBrush="Black" BorderThickness="1">
                    <StackPanel>
                        <Controls:ColorPicker  CacheMode="BitmapCache" SelectedColorChanging="ColorPicker_SelectedStrokeChanging" SelectedColor="{Binding StageBackgroundColor, Mode=TwoWay, Converter={StaticResource SolidColorBrushToColorConverterResource}}">
                        </Controls:ColorPicker>
                        <Button  CacheMode="BitmapCache" Content="Finished" Click="Button_Click" Tag="{Binding ElementName=popupColorPickerStroke}"></Button>
                    </StackPanel>
                </Border>
            </Popup>
        </Grid>
    </StackPanel>
</UserControl>
